package com.web.hilover.mapper;

import com.web.hilover.entity.Couple;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;

@Mapper
public interface CoupleMapper {
    List<Couple> findTopByLikes(int limit);
    List<Couple> findRandom(int limit);
    List<Couple> findByYear(int year);
    List<Couple> findAllPublic();
    Couple findById(Long id);
    int insert(Couple couple);
    int update(Couple couple);
    int deleteById(Long id);
    List<Couple> search(String keyword);
    List<Map<String, Object>> findAllWithDetail();
    List<Couple> findByUser(Long userId);
    int incrementLikes(Long id);
    int count();
    List<Map<String, Object>> findRecentWithDetail(int limit);
    List<Integer> findAllYears();
} 